package com.itHsuSE.demo8;

import javax.swing.*;
import java.awt.*;

/**
 * @author Hsu琛君珩
 * @ClassName:Test2
 * @date 2023-12-19
 * @apiNote
 * @Version: v1.0
 */

public class Test2 {
    public static void main(String[] args) {
        JFrame jf=new JFrame("Frame");
        jf.setBounds(400,300,1000,1200);
        jf.setVisible(true);
        jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JButton button1=new JButton("按钮1");
        JButton button2=new JButton("按钮2");
        JPanel jp=new JPanel(new FlowLayout());
        jp.add(button1);
        jp.add(button2);
        jf.add(jp);
    }
}
